package models

import (
	"gorm.io/gorm"
)

type ImageBasic struct {
	gorm.Model
	RowImage string `gorm:"size:255;comment:镜像名称"`
}

func (table *ImageBasic) TableName() string {
	return "image_basic"
}

func NewImageBasic(rowImage string) *ImageBasic {
	return &ImageBasic{
		RowImage: rowImage,
	}
}

func (i *ImageBasic) GetRowImage() string {
	return i.RowImage
}

func (i *ImageBasic) SetRowImage(rowImage string) {
	i.RowImage = rowImage
}
